package day05;

public class Food {
//class属性尽量私有，可以通过get和set方法获取
private String kouwei;
//class属性公共的,可以通过.方法获取
public  String food;
public String getKouwei() {
	return kouwei;
}
public void setKouwei(String kouwei) {
	this.kouwei = kouwei;
}
public String getFood() {
	return food;
}
public void setFood(String food) {
	this.food = food;
}
public Food() {
	super();
}
public Food(String kouwei, String food) {
	super();
	this.kouwei = kouwei;
	this.food = food;
}

public void eat() {
	System.out.println("我能吃");
 
}
public static void main(String[] args) {

}

}
